home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10265 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  994 b 

  1. Path: dispatch.news.demon.net!demon!polo!john
  2. From: john@polo.demon.co.uk (John Winters)
  3. Newsgroups: comp.unix.questions,comp.lang.c
  4. Subject: Re: Bold ASCII
  5. Date: Fri, 15 Mar 1996 21:17:19 GMT
  6. Organization: Wallingford
  7. Message-ID: <DoBv4w.38B@polo.demon.co.uk>
  8. References: <4i7cpj$hqa@nexen.nexen.com> <31494BF9.1654@cs.bham.ac.uk>
  9. X-NNTP-Posting-Host: polo.demon.co.uk
  10.  
  11. In article <31494BF9.1654@cs.bham.ac.uk>,
  12. Tom (Ghoti) Kermode <txk@cs.bham.ac.uk> wrote:
  13. >Matthew B. Doar wrote:
  14. >> 
  15. >> Anyone know how to get bold strings of text
  16. >> from a program (termcap related?)
  17. >> 
  18. >> e.g.
  19. >> 
  20. >> printf("\012 This is in bold \013\n");
  21. >> 
  22. >> where \012 and \013 are whatever the magic ascii values
  23. >> are to turn on and off bold.
  24. >> 
  25. >> ~Matt
  26. >
  27. >The ascii values are \033[1m to turn bold on and \033[0m to turn it off.
  28. >(out of interest)
  29.  
  30. I don't *think* ASCII makes any definition of how to turn bold on and
  31. off.  ISO/ANSI C certainly doesn't.
  32.  
  33. John
  34.  
  35. -- 
  36. John Winters.  Wallingford, Oxon, England.
  37.